import { defineStore } from 'pinia'
import { ref } from 'vue'

export const getUseInfor = defineStore('useInfor', () => {
    const userInfo = ref<any >("")
    const headIMg:any=ref('')
    // console.log(userInfo)
    // console.log(headIMg)
    function setUserIfon(avatar:any){
        userInfo.value.data.avatar =  avatar
        console.log(userInfo.value)
    }
    return { userInfo,headIMg,setUserIfon}
}, {
    persist: true //可以自定义配置存储的地方，这是默认储存
})
